package com.foreveross.dao;

import java.util.List;

import com.foreveross.vo.Tenement;
import com.foreveross.vo.VisitorCheckIn;

public interface VisitorCheckInDAO {

	public <T extends Object> void save(T entity) throws Exception;

	public <T> void remove(T entity) throws Exception;

	public Object findById(Class clazz, String id) throws Exception;

	public Object findByIntId(Class clazz, int id) throws Exception;

	public <T extends Object> T updateObject(T t) throws Exception;

	public List<VisitorCheckIn> findVisitorCheckInList(String name,
			String phone, String user_id, String houseId, String code,
			String weixinId, int pageIndex, int pageSize,String userId) throws Exception;

	public long getVisitorCheckInListCount(String name, String phone,
			String user_id, String houseId, String code, String weixinId,String userId)
			throws Exception;

	public VisitorCheckIn getVisitorCheckIn(String id, String weixinId)
			throws Exception;
	
	public VisitorCheckIn scanVisitorCheckIn(String ticketId)
			throws Exception;
	public void updateVisitorCheckInStateByDate(String date) throws Exception;
}
